<template>
  <div class="box-container">
    <div class="box-title">
      <div class="verticalLine" />
      <div>{{ title }}</div>
    </div>
    <div class="box-contents">
      <slot name="contents" />
    </div>
  </div>
</template>

<script>
/**
 * 调用示例
 * title 可传变量
 * 插槽contents 放卡片内容

  import simpleInfoCard from '@/components/xm/simpleInfoCard' // 导入组件

  <simpleInfoCard title="基本信息">
    <template slot="contents">
      <div class="contents">
        <el-row>
          <el-col :span="12" class="col">
            <div class="label">统一社会代码：</div>
            <div class="value">12420104707178080G</div>
          </el-col>
          <el-col :span="12" class="col">
            <div class="label">经营状态：</div>
            <div class="value">正常营业</div>
          </el-col>
        </el-row>
      </div>
    </template>
  </simpleInfoCard>
*/
export default {
  components: {},
  props: {
    title: {
      type: String,
      default: '基本信息'
    }
  },
  data() {
    return {
      cardTitle: ''
    }
  },
  created() {},
  mounted() {},
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.box-container{
  .box-title{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 40px;
    .verticalLine{
      background-color: #1890FF;
      height: 20px;
      width: 3px;
      margin-right: 16px;
    }
  }
  .box-contents{
    padding: 0 20px;
  }
}
</style>
